package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.SensitiveDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmSensitive;

/**
 * @author HYK
 * @date 2022/10/22
 */
public interface WmSensitiveService extends IService<WmSensitive> {
    /**
     * 查询敏感词列表
     *
     * @param dto dto
     * @return {@link ResponseResult}
     */
    ResponseResult list(SensitiveDto dto);

    /**
     * 新增敏感词
     *
     * @param wmSensitive wm敏感
     * @return {@link ResponseResult}
     */
    ResponseResult saveSensitive(WmSensitive wmSensitive);

    /**
     * 修改敏感词
     *
     * @param wmSensitive wm敏感
     * @return {@link ResponseResult}
     */
    ResponseResult updateSensitive(WmSensitive wmSensitive);

    /**
     * 删除敏感词
     *
     * @param id id
     * @return {@link ResponseResult}
     */
    ResponseResult deleteSensitive(Integer id);
}
